package com.wx.spring.utils;

/**
 * @author wx
 * @Description: 注解工具类
 * @date 2019/1/4 000417:55
 */
public class AnnotationUtils {

    private AnnotationUtils() {
        throw new RuntimeException("工具类禁止实例化");
    }

    /**
     * @description: 判断注解是否为空
     * @author: wx
     * @date: 2019/1/4 0004
     * @param t
     * @return: boolean
     */
    public static <T> boolean isEmpty(T t) {
        return t == null ? true : false;
    }

    /**
     * @description: 判断注解是否非空
     * @author: wx
     * @date: 2019/1/4 0004
     * @param t
     * @return: boolean
     */
    public static <T> boolean isNotEmpty(T t) {
        return !isEmpty(t);
    }
}
